import Vue from "vue";
import Vuex from "vuex";
import global from "./Global";
import LibsCommonBasics from "libs-common-basics";
import Navigation from "./modules/navigation";
import Pagination from "./modules/pagination";
import CommonViews from "libs-common-views";
import QCItem from "./modules/qc/Project";
import QCStandard from "./modules/qc/Standard";
import QCSample from "./modules/qc/Sample";
import QCTask from "./modules/qc/Task";
import QCCommon from "./modules/qc/Common";

Vue.use(Vuex);

export default new Vuex.Store({
    ...global,
    modules: {
        oauth: CommonViews.OAuth,
        Navigation,
        Pagination,
        QCCommon,
        QCItem,
        QCStandard,
        QCSample,
        QCTask,
        OrganizationTree: LibsCommonBasics.OrganizationTree,
        ChooseEmployee: LibsCommonBasics.ChooseEmployee,
    },
});